import authRequest from "@/api/backend/base/auth.js";

export function listRoutesTree(){
    return authRequest.get("/sysroute/all")
}

export function listRoutes(){
    return authRequest.get("/sysroute/list")
}

export function listUserRoutes(){
    return authRequest.get("/sysroute/user/list")
}


export function createRoute(route){
    return authRequest.post('/sysroute/create',route)
}


export function queryLevelList(parentId){
    return authRequest.get("/sysroute/level/"+parentId)
}

export function queryLevelMenu(parentId){
    return authRequest.get("/sysroute/level/menu/"+parentId)
}